package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性详情业务对象 p_store_product_attr_result
 *
 * @author ruoyi
 * @date 2022-08-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("商品属性详情业务对象")
public class PStoreProductAttrResultBo extends BaseEntity {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true)
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID", required = true)
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer productId;

    /**
     * 商品属性参数
     */
    @ApiModelProperty(value = "商品属性参数", required = true)
    @NotBlank(message = "商品属性参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String result;

    /**
     * 上次修改时间
     */
    @ApiModelProperty(value = "上次修改时间", required = true)
    @NotNull(message = "上次修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer changeTime;

    /**
     * 活动类型 0=商品，1=秒杀，2=砍价，3=拼团
     */
    @ApiModelProperty(value = "活动类型 0=商品，1=秒杀，2=砍价，3=拼团", required = true)
    @NotNull(message = "活动类型 0=商品，1=秒杀，2=砍价，3=拼团不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
